package com.lxw.study.structural.adapter.inspring;

import com.lxw.study.structural.adapter.case2.Logger;
import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;
@Component
public class NbLogger implements Logger {
    @Override
    public void log(String message) {
        System.out.println("[INFO]\t" + Thread.currentThread().getName() + "\t" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + "\t" + message);
    }
}
